<template>
  <div id="basic-layout">
    <a-layout style="min-height: 100vh">
      <a-layout-header class="header">
        <GlobalHeader />
      </a-layout-header>
      <a-layout-content class="content">
        <RouterView />
      </a-layout-content>
      <a-layout-footer class="footer">
        <a href="https://github.com/XiuyIiii" target="_blank"> JAVA开发工程师 xiuyi</a>
      </a-layout-footer>
    </a-layout>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
import GlobalHeader from '@/components/GlobalHeader.vue'

export default defineComponent({
  components: { GlobalHeader }
})
</script>

<style scoped>
#basic-layout .header {
  background: white;
  color: unset;
  margin-bottom: 16px;
  padding-inline: 20px;
}
#basic-layout .footer {
  background: #fefefe;
  padding: 16px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
}

#basic-layout .content {
  padding: 20px;
  background: linear-gradient(to right, #fefefe, #fff);
  margin-bottom: 28px;
}
</style>
